function onYouTubePlayerReady(playerId) {
    ytplayer = document.getElementById("player");
}
    
function play() {
  if (ytplayer) {
    ytplayer.playVideo();
  }
}